﻿using WidgetsDesign.API.Models;

namespace WidgetsDesign.API.Services
{
    public interface IRiskRepositoryRepository
    {

        Task<IEnumerable<RiskRepositoryModel>> GetRiskRepositoryListAsync(string type, int pageIndex, int pageSize);

        int GetRiskRepositoryListTotal();

        void AddRiskRepository(RiskRepositoryModel model);

        Task<bool> SaveAsync();

        Task<RiskRepositoryModel> GetRiskRepositoryAsync(string  id);

          void UpdateRiskRepository(RiskRepositoryModel model);
        /* 
         Task<bool> GetHitokotoExistsAsync(int HitokotoId);
         void  CreateHitokoto(HitokotoModel Hitokoto);
       */
    }
}
